<?php
namespace app\msgapi\controller;

use app\BaseController;
use app\msgapi\service\HuihuaMessageStatisticsService;
use app\Request;

/**
 * 消息统计控制器
 */
class HsmessageStatistics extends BaseController
{
    protected HuihuaMessageStatisticsService $service;
    public function __construct(HuihuaMessageStatisticsService $service)
    {
        parent::__construct(app());
        $this->service = $service;
    }

    /**消息统计列表
     * @param Request $request
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getChatStatisticsLst(Request $request)
    {
        $data = $request->only(['year'],'post');
        return $this->service->getChatStatisticsLst($data);
    }



}